# -*- coding: utf-8 -*-
#
# Author:: hanjunfeng
# Date:: 2023/4/6
import traceback


def format_stack_str():
    format_stack_str = ""
    format_stack = traceback.format_stack()
    for item in format_stack:
        format_stack_str += item
    return format_stack_str


if __name__ == "__main__":
    try:
        assert 1 == 2
    except:
        print(format_stack_str())
